package com.equipment.fkdcn.service;

import com.equipment.fkdcn.mapper.RepairMapper;
import com.equipment.fkdcn.pojo.Repair;

import java.util.HashMap;
import java.util.List;

public class RepairServiceImpl implements RepairService{

    private RepairMapper repairMapper;

    public void setRepairMapper(RepairMapper repairMapper) {
        this.repairMapper = repairMapper;
    }

    public List<Repair> allQuery() {
        return repairMapper.allQuery();
    }

    public boolean del(int id) {
        return repairMapper.del(id);
    }

    public boolean addRepair(Repair repair) {
        return repairMapper.addRepair(repair);
    }

    public boolean addRepair2(HashMap<String, String> repair) {
        return repairMapper.addRepair2(repair);
    }
}
